package com.yungee.xxl;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.yungee.logic.TransferFileLogic;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class StudentTask {
    @Autowired
    private TransferFileLogic transferFileLogic;
    /**
     * 1、简单任务示例（Bean模式）
     */
    @XxlJob("transferStudentCardFile")
    public ReturnT<String> transferStudentCardFile(String param) throws Exception {
        transferFileLogic.transferStudentCardFile();
        return ReturnT.SUCCESS;
    }
}
